package com.he.service;

import com.he.dto.UserDTO;
import com.he.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author hehengjia
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2022-04-27 14:05:11
*/
public interface UserService extends IService<User> {

    UserDTO login(UserDTO userDTO);

    User register(UserDTO userDTO);



//    //插入的数据有null则不会插入
//    int insertSelective(User user);
//
//    List<User> selectAllById(@Param("id") Integer id);
//
//    int updateUsernameByPassword(@Param("username") String username, @Param("password") String password);
//
//    int deleteById(@Param("id") Integer id);
//
//    int insertUpdate(User user);
//
//    @Select({"select * from Manager_Db.sys_user where username like #{username} limit #{pageNum}, #{pageSize}"})
//    List<User> selectPage(Integer pageNum, Integer pageSize,String username);
//
//    @Select({"select count(*) from Manager_Db.sys_user"})
//    Integer selectTotal(String username);
}
